package ooday01;

public class carDemo {
    public static void main(String[] args) {
       /* Car od=new Car("奥迪","蓝色",2000000);
        Car bc=new Car("奔驰","黑色",4000000);
        Car bm=new Car();

        od.start();
        od.run();
        od.stop();


        Car arr1=new Car();
        arr1.brand="奥迪";
        arr1.color="黑色";
        arr1.price=4000000;
        arr1.stop() ;
        arr1.run();
        arr1.stop();*/




        Car dBeng=new Car("大奔","黑色",400);
        dBeng.start();
        dBeng.run();
        dBeng.stop();

        Car arr1=new Car();
        arr1.brand="大奔";
        arr1.color="黑色";
        arr1.price=400;
        arr1.stop();
        arr1.run();
        arr1.stop();

    }
}
